<?php
//set error reporting
error_reporting(E_ALL);

// Contains login credentials for connecting to the database
$dbuser = '';
$dbpass = '';
$dbname = 'terrapi_tagpro';
$dbhost = '127.0.0.1';

// Connects to the database using above info
//$connection = mysql_connect($dbhost, $dbuser, $dbpass) or die ('Error connecting to mysql');
//mysql_select_db($dbname);

// Create connection
$con=mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
// Check connection
if (mysqli_connect_errno($con)){
	echo "Failed to connect to MySQL: " . mysqli_connect_error();
}

?>